<div id="submenu">
    <ul>
        <li><a href="profile.php?username={$user->getUsername()}&action=summary">Riepilogo</a></li>
        {if $user_profile->username eq $user->username}
         | 
        <li><a href="profile.php?username={$user->getUsername()}&action=mail">Posta</a></li>  | 
        <li><a href="profile.php?username={$user->getUsername()}&action=edit">Modifica Profilo</a></li>  |
        <li><a href="profile.php?username={$user->getUsername()}&action=thread">Discussioni recenti</a></li>
        
        {else}
             | 
            <li><a href="profile.php?username={$user_profile->getUsername()}&action=pm">Invia messaggio</a></li>
        {/if}
        
    </ul>
</div>